package com.own.component.common.util.encrypt.util;

import com.own.component.common.util.encrypt.BaseEncryptUtil;
import com.own.component.common.util.encrypt.EncryptUtil;
import lombok.extern.slf4j.Slf4j;

/**
 * Sha1Util
 *
 * @author chenxueli
 * @date 2020/12/3 9:14
 */
@Slf4j
public class Sha1Util implements BaseEncryptUtil {

    /**
     * 加密
     *
     * @param content 加密内容
     * @return 加密后的内容
     */
    @Override
    public String encrypt(String content) {
        return EncryptUtil.SHA.encrypt(content, "SHA-1");
    }

}
